home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 95
/
MOBICLIC 95.ISO
/
mac
/
MWB_DATA
/
TCH095
/
TCH095_00
/
TCH095_00.swf
/
scripts
/
frame_6
/
PlaceObject2_187_194
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2007-06-28
|
1KB
|
34 lines
onClipEvent(enterFrame){
if(pSonDebutCharge === 0)
{
if(mySonCharge <= _root.gListeSons.length - 1)
{
var mon_sound = new Sound();
if(mySonCharge === 0)
{
mon_sound.loadSound(myCheminSon + _root.gListeSons[mySonCharge] + ".mp3",false);
_root[myLangue + "_" + "my_comment_" + mySonCharge] = mon_sound;
}
else
{
mon_sound.loadSound(myCheminSon + _root.gListeSons[mySonCharge] + ".mp3",false);
}
pSonDebutCharge = 1;
_root.infos["testCharge" + myLangue].text = String(mySonCharge) + "/" + String(_root.gListeSons.length - 1);
}
}
else
{
if(mon_sound.getBytesTotal() != 0)
{
_root.infos["testpCent" + myLangue].text = 100 * (mon_sound.getBytesLoaded() / mon_sound.getBytesTotal());
}
if(mon_sound.getBytesLoaded() == mon_sound.getBytesTotal())
{
_root[myLangue + "_" + "my_comment_" + mySonCharge] = mon_sound;
mySonCharge += 1;
pSonDebutCharge = 0;
}
}
}